package com.songlanyun.modules.order.service.impl;

import com.songlanyun.common.validator.ValidatorUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.Query;

import com.songlanyun.modules.order.dao.OrderSelfTakeDao;
import com.songlanyun.modules.order.entity.OrderSelfTake;
import com.songlanyun.modules.order.service.OrderSelfTakeService;

/**
 * 订单自提信息服务
 */
@Service("orderSelfTakeService")
public class OrderSelfTakeServiceImpl extends ServiceImpl<OrderSelfTakeDao, OrderSelfTake> implements OrderSelfTakeService {


    /**
     * 创建订单自提信息
     * @param entity
     * @return
     */
    @Override
    public OrderSelfTake create(OrderSelfTake entity) {
        ValidatorUtils.validateEntity(entity);
        this.baseMapper.insert(entity);
        return entity;
    }

    /**
     * 修改订单自提信息
     * @param entity
     * @return
     */
    @Override
    public OrderSelfTake modify(OrderSelfTake entity) {
        this.baseMapper.updateById(entity);
        return entity;
    }

    @Override
    public void remove(Long id) {

    }

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        return null;
    }
}